
use "Table5data.dta" 

ssc install outreg2
*****************Generate Table 5********************************************************

xtreg log_total_soilbase log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)

outreg2 using DIDsoilbase.tex,replace ctitle(Full) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Total Soil Base"\label{tab1})

xtreg log_total_soilbase log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1950, cluster(FIPS)

outreg2 using DIDsoilbase.tex,append ctitle($<$ 1950) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Total Soil Base"\label{tab1})

xtreg log_total_soilbase log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1960, cluster(FIPS)

outreg2 using DIDsoilbase.tex,append ctitle($<$ 1960) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Total Soil Base"\label{tab1})

xtreg log_total_soilbase log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1970, cluster(FIPS)

outreg2 using DIDsoilbase.tex,append ctitle($<$ 1970) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Total Soil Base"\label{tab1})



